<template>
    <div class="configuredRule">
        <el-card shadow="hover" class="card-search">
            <el-row>
                <el-col :span="20">
                    <div class="search_detail">
                        <div class="search">
                            <span class="span_name">名称：</span>
                            <el-input v-model="state.params.realName" placeholder="请输入" clearable />
                        </div>
                    </div>
                </el-col>
                <el-col :span="4">
                    <el-button type="primary" :icon="Search" @click="search">搜索</el-button>
                    <el-button type="danger" :icon="Delete" @click="reast">重置</el-button>
                </el-col>
            </el-row>
        </el-card>
    </div>
</template>
<script setup>
import { reactive, getCurrentInstance } from 'vue'
// import { ElMessage } from 'element-plus'
const { proxy } = getCurrentInstance();
const state = reactive({
    resulst: {
        textarea: ''
    },
    params: {
        monthStatus: '',
        realName: '',
        roleId: '',
        time: ['', ''],
        startDate: '',
        endDate: '',
    },

})

const getData = async () => {
    let res = await proxy.$api.home.getCompanyInfo()
    state.resulst = res.result
    console.log('res', res);
}
getData()
// const save = () => {
//     console.log('state.resulst', state.resulst);
//     let params = {
//         paramKey: state.resulst.param_key,
//         id: state.resulst.id,
//         paramValue: state.resulst.param_value,
//         remark: state.resulst.remark,
//         status: state.resulst.status,
//     }
//     proxy.$api.home.configUpdate(params).then(res => {
//         console.log('res', res);
//         console.log('res', res);
//         if (res.msg === "success") {
//             getData()
//             ElMessage({
//                 type: 'success',
//                 message: '修改成功',
//             })
//         }
//         getData()
//     })
// }
</script>
<style scoped lang="scss">
.card-main {
    margin-top: 20px;
    height: calc(100vh - 200px);
    position: relative;

    .pagination {
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
        text-align: right;
    }
}
</style>